import { post, get } from '@/http/index'
import type { DseClassModel } from '@/type/DseClass'
import { DeconstructionKvModel } from '@/utils/objUtils'
export async function getDseClass(pk: string) {
  return await get<DseClassModel>("DseClass/Get", { pk: pk })
}

export async function listDseClass(cond: any) {
  return await post<DseClassModel>("DseClass/List", cond)
}

export async function saveDseClass(data: DseClassModel) {
  DeconstructionKvModel(data)
  return await post<DseClassModel>("DseClass/Save", data)
}